package NWPackage;

public class Cell {
	private String agentName;
	private int index;
	private String algPrefferedCandidate = "Dont Care";
	
	public Cell()
	{
		
	}
	protected Cell(String agentName)
	{
		this.setAgentName(agentName);
	}
	protected Cell(String agentName, int index)
	{
		this.setAgentName(agentName);
		this.index = index;
	}
	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}
	public String getAgentName() {
		return agentName;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public int getIndex() {
		return index;
	}
	
	public Cell setAlgPreffered(String preffered){
		if (preffered == null || preffered.isEmpty())
			this.algPrefferedCandidate = "Dont Care";
		else
			this.algPrefferedCandidate = preffered;
		return this;
	}
	
	public String getAlgPrefferedCandidate()
	{
		return this.algPrefferedCandidate;
	}
}
